package main

import (
	"github.com/gin-gonic/gin"
 	"meditate/api"
	"meditate/configs"
	"meditate/logger"
)

func main() {
	configs.LoadConf()
 	logger.InitLogger()
	Start()
}

func Start() {
	r := gin.Default()
	r.Use(logger.GinLogger(), logger.GinRecovery(true))
	g := r.Group("/api/v1")

	api.RegisterV1(g)
	r.Run(configs.Conf.Gin.Port)
}
